package com.yixun.qfbao.model;

public enum DecisionServiceEnum {
    VISIT_OVER_TIME(1, "到访延长时间"),
    TRADE_OVER_TIME(2, "交易延长时间"),
    PEPORT_OVER_TIME(3, "报备保护时间"),
    PEPORT_VALID_TIME(4, "报备有效时间")
    ;

    public static String getDescByNo(int no) {
        for (DecisionServiceEnum decisionServiceEnum : DecisionServiceEnum.values()) {
            if(no == decisionServiceEnum.getNo()) {
                return decisionServiceEnum.getDesc();
            }
        }
        return null;
    }

    DecisionServiceEnum(Integer no, String desc) {
        this.no = no;
        this.desc = desc;
    }

    private Integer no;

    private String desc;

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
